package za.co.EYEWTKAH.spring.jms.embedded;

import javax.jms.ConnectionFactory;

import org.springframework.beans.factory.DisposableBean;
import org.springframework.beans.factory.FactoryBean;
import org.springframework.beans.factory.InitializingBean;

public class EmbeddedConnectionFactoryFactoryBean extends
		EmbeddedConnectionFactoryFactory implements
		FactoryBean<ConnectionFactory>, DisposableBean, InitializingBean {

	@Override
	public ConnectionFactory getObject() throws Exception {

		return super.getConnectionFactory();
	}

	@Override
	public Class<? extends ConnectionFactory> getObjectType() {

		return ConnectionFactory.class;
	}

	@Override
	public boolean isSingleton() {

		return true;
	}

	@Override
	public void afterPropertiesSet() throws Exception {
		super.initialize();
	}

	@Override
	public void destroy() throws Exception {
		super.shutDown();
	}

}
